package com.css.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;


@Getter
@AllArgsConstructor
public enum DmGyKpyBdztEnum {


    KPYBDZT_BDCG("00", "绑定成功"),

    KPYBDZT_SHWRY("01", "待审核"),

    KPYBDZT_SHYWDKT("02", "审核未通过"),

    KPYBDZT_DSH("03", "已解绑");

    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        DmGyKpyBdztEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }
}
